<?php namespace App\Infra;

use App\Utils\ModelOperatorTrait;
use App\Models\StoreLevel;
class StoreLevelManager{
	use ModelOperatorTrait;

	public function getStoreLevels($conditions = null,$first = false,$union = []){
		return $this->findModel(StoreLevel::class,StoreLevel::query()->with($union),$conditions,$first);
	}

	public function updateStoreLevel($conditions = null,$data = null){
		$this->update(StoreLevel::class,StoreLevel::query(),$conditions,$data);
	}

	public function createStoreLevel($data){
		$this->create(StoreLevel::class,$data);
	}

	public function deleteStoreLevel($conditions = null){
		$this->delete(StoreLevel::class,StoreLevel::query(),$conditions);
	}
}